#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20240629.sql ./mysql/db
cp ../sql/ry_config_20240902.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../bw-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy bw-gateway "
cp ../bw-gateway/target/bw-gateway.jar ./bw/gateway/jar

echo "begin copy bw-auth "
cp ../bw-auth/target/bw-auth.jar ./bw/auth/jar

echo "begin copy bw-visual "
cp ../bw-visual/bw-monitor/target/bw-visual-monitor.jar  ./bw/visual/monitor/jar

echo "begin copy bw-modules-system "
cp ../bw-modules/bw-system/target/bw-modules-system.jar ./bw/modules/system/jar

echo "begin copy bw-modules-file "
cp ../bw-modules/bw-file/target/bw-modules-file.jar ./bw/modules/file/jar

echo "begin copy bw-modules-job "
cp ../bw-modules/bw-job/target/bw-modules-job.jar ./bw/modules/job/jar

echo "begin copy bw-modules-gen "
cp ../bw-modules/bw-gen/target/bw-modules-gen.jar ./bw/modules/gen/jar

